<script>
onload = function() {
  history.back();
};
</script>
container
<iframe src="back-during-onload-middle.html"></iframe>
<script>history.back();</script>